import request from '@/utils/request'

export function pageCraft(data) {
  return request({
    url: '/craft/page',
    method: 'post',
    data
  })
}
export function getCraft(id) {
  return request({
    url: `/craft/get/${id}`,
    method: 'get',
  })
}
export function deleteCraft(id) {
  return request({
    url: `/craft/delete/${id}`,
    method: 'delete',
  })
}
export function saveCraft(data) {
  return request({
    url: '/craft/save',
    method: 'put',
    data
  })
}
export function editCraft(data) {
  return request({
    url: '/craft/edit',
    method: 'post',
    data
  })
}
export function listCraft(data) {
  return request({
    url: '/craft/list',
    method: 'post',
    data
  })
}
